package dao;


import util.db.DBConn;
import bean.CompanyBean;

public class CompanyDao {

	public void addCompany(CompanyBean bean) {
		DBConn conn = new DBConn();
		String sql = "INSERT INTO company(tel,phone,fax,addr,zipcode,website) VALUES('" + bean.getTel() + "','"
				+ bean.getPhone() + "','" + bean.getFax() + "','"
				+ bean.getAddr() + "','" + bean.getZipcode() + "','"
				+ bean.getWebsite() + "')";
		conn.executeUpdate(sql);
		conn.close();

	}
}
